import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:moose_app/ui/values/constants.dart';

class ATHMainBottomAppbarItem extends StatelessWidget {
  final String iconPath;
  final Color color;
  final String title;
  final Function press;

  ATHMainBottomAppbarItem({
    @required this.iconPath,
    @required this.color,
    @required this.title,
    this.press,
  });

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
        onTap: press,
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            Container(
              width: kSize42,
              height: kSize42,
              child: SvgPicture.asset(iconPath, color: color),
            ),
            Text(title, style: TextStyle(color: color))
          ],
        ));
  }
}
